package com.ld.admin.model.timedtask;

import java.io.Serializable;
import java.util.Date;

import com.ld.shieldsb.annotation.model.ModelAnno.Model;
import com.ld.shieldsb.annotation.model.ModelAnno.TableName;

import lombok.Data;

/**
 * 
 * 定时任务执行情况记录表(sys_timedtask_log)
 * 
 * @ClassName SysTimedtaskLogModel
 * @author 吕凯
 * @date 2020年07月08日 09:18:10
 *
 */
@Model(name = "定时任务执行情况记录表")
@TableName("sys_timedtask_log")
@Data
public class SysTimedtaskLogModel implements Serializable {
    private static final long serialVersionUID = 7038719119267281542L;

    /*主键id*/
    private Long id;
    /*任务id*/
    private Long taskId;
    /*执行时间*/
    private Date execTime;
    /*执行的主机ip*/
    private String serverIp;
    /*备注*/
    private String remarks;
    /*状态0正常-1删除*/
    private Integer state;
    /*批次号，用来区分不同操作批次*/
    private String batchNo;
    /*任务执行类型，0启动9关闭1开始2结束3进行中*/
    private Integer type;
    /*创建人id */
    private Long createBy;
    /*创建人*/
    private String createName;

    public static class Type {
        public static final int TYPE_START = 0; // 启动
        public static final int TYPE_STOP = 9; // 关闭
        public static final int TYPE_BEGIN = 1; // 开始
        public static final int TYPE_END = 2; // 结束
        public static final int TYPE_RUN = 3; // 进行中
        public static final int TYPE_RUN_EXCEP = 4; // 运行异常
        public static final int TYPE_REGISTER = 10; // 注册
    }
}
